import pytest
import requests
class WMS_API:

    def __init__(self,url):
        self.url = url
        self.session = requests.session()

    def post_data(self,endpoint,data=None,headers=None):
        url = f"{self.url}{endpoint}"
        request = requests.post(url=url,data=data,headers=headers)
        return request

    def post_params(self,endpoint,data=None,headers=None):
        url = f"{self.url}{endpoint}"
        request = requests.post(url=url,params=data,headers=headers)
        return request

    # @pytest.fixture(scope='function')
    # def login1(self):
    #     headers = {
    #         "cookie": "JSESSIONID=D927456B2BA8E5D0716A99BA7FA06067"
    #     }
    #     return headers
